import fs from 'fs'
import path from 'path'
import pkgDir from 'pkg-dir'

const pkgPath = pkgDir.sync(process.cwd())

const fileExists = (...paths) => fs.existsSync(path.join(pkgPath, ...paths))

export default fileExists
